{template 'common/header'}
<link rel="stylesheet" href="../addons/kuyuan_red/dist/web/common.css" />
<link rel="stylesheet" href="../addons/kuyuan_red/dist/web/info.css" />
<div id="louie" data-url="{php echo $this->createWebUrl('api')}">
    <!--S总数据-->
    <div id="total-data" class="info-box">
        <dl>
            <dt>用户</dt>
            <dd>{{total.member_number}}</dd>
        </dl>
        <dl>
            <dt>红包</dt>
            <dd>{{total.publish_red}}</dd>
        </dl>
        <dl>
            <dt>红包总额</dt>
            <dd>￥{{total.red_sum}}</dd>
        </dl>
        <dl>
            <dt>收入</dt>
            <dd>￥{{total.red_income}}</dd>
        </dl>
    </div>
    <!--E总数据-->

    <!--S今日数据-->
    <div id="today-data" class="info-box">
        <dl>
            <dt>新增用户</dt>
            <dd>{{today.member_number}}</dd>
        </dl>
        <dl>
            <dt>红包</dt>
            <dd>{{today.publish_red}}</dd>
        </dl>
        <dl>
            <dt>红包总额</dt>
            <dd>￥{{today.red_sum}}</dd>
        </dl>
        <dl>
            <dt>收入</dt>
            <dd>￥{{today.red_income}}</dd>
        </dl>
    </div>
    <!--E今日数据-->

    <!--S历史数据-->
    <table id="list" class="table table-hover">
        <tr><th>新增用户</th><th>红包</th><th>红包总额</th><th>收入</th><th>时间</th></tr>
        <tr v-for="item in list" :key="item.time">
            <td>{{item.member_number}}</td>
            <td>{{item.publish_red}}</td>
            <td>{{item.red_sum}}</td>
            <td>{{item.red_income}}</td>
            <td>{{item.time}}</td>
        </tr>
        <tr class="empty" v-if="data_total <= 0"><td colspan="5">暂无数据</td></tr>
    </table>
    <page v-on:change-page="changePage" v-bind:total="data_total" v-bind:return-num="returnNum"></page>
    <!--E历史数据-->
</div>
<script src="../addons/kuyuan_red/dist/web/common.js"></script>
<script src="../addons/kuyuan_red/dist/web/info.js"></script>
{template 'common/footer'}